﻿using System;
using System.Diagnostics;

namespace 访问者模式2
{
    public abstract class Staff
    {
        public string name;
        public int kpi; //员工KPI

        public Staff(String name)
        {
            this.name = name;
            kpi = new Random().Next(10);
        }
        // 核心方法，接受visitor的访问
        public abstract void accept(IVisitor visitor);

    }
}
